﻿@model AlbumModel
@{    
    ViewBag.Title = "照片";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<section class="pe-basic">

    @Html.Partial("_PersonalPartial")

    <div class="content">
        @foreach (var item in Model.Photos)
        {
            <div class="photos live-tile">
                <span class="tile-title">@item.Caption</span>
                <p>
                    <a href="/Assets/Member/@(Model.Id)/@(item.Url).jpg" class="photograph" rel="photograph">
                        <img src="/Assets/Member/@(Model.Id)/@(item.Url)-thumbnail.jpg" alt="@item.Caption" /></a>
                </p>
            </div>
        }
        <div class="field" style="clear: left">
            <a href="/Personal/UploadPhotograph">
                <div class="add">
                    <p>上传新照片</p>
                </div>
            </a>
            <a href="/Event">
                <div class="back">
                    <p>返回</p>
                </div>
            </a>
        </div>
    </div>
</section>
<script type="text/javascript">
    $(function () {
        $('.photograph').fancybox();
    });
</script>
